package com.jutixueyuan.controller;

import com.jutixueyuan.pojo.House;
import com.jutixueyuan.pojo.LivegoodsResult;
import com.jutixueyuan.service.DetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DetailsController {

    @Autowired
    private DetailsService detailsService;


    @RequestMapping("/details")
    public House details(String id){
        House house = detailsService.findById(id);
        return house;
    }

}
